package com.lzc.util;


public class ThreadLocalUtil {

    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setUid(Long uid){
        threadLocal.set(uid);
    }

    public static Long getUid(){
        return threadLocal.get();
    }
}
